package com.ytf.core.exception;


public class BusinessException extends RuntimeException {
    private int code; // 错误码
    private String msg; // 错误信息

    public BusinessException(int code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
